turning custombooking into classes