Added booked function that returns a 1 if it is  not booked and 0 if it is booked.