added getTime and paintBooked functions for booking slots