partially implemented booking for one hour. refactored code