completed and tested seat booking function