A revenue management system which can learn by itself