implementing the booking