Hi Mohamed,
Welcome to JavaRanch and this forum.
When talking about "create, remove and book", are you talking about
Some methods that are in another class that you have created? If so, this could work.
Some methods that you have added to your version of the Data interface that are not specified in the provided interface? If so, then I would advise against doing this. The interface you have been provided should work with
any data format (hence the name of your class: Data). It is not an URLyBird specific class. But for the book() method to work correctly, it will have to have some idea of what is an available record so that it does not re-book a record that has already been booked. If your book() method is in the Data class then you are putting business logic inside a class that neither needs, nor should have, business logic.
the methods specified by your interface (I thought the methods specified were the standard CRUD methods: Create, Read, Update, Delete) with a few extras for finding and locking records. If so, then I recommend you see my earlier point regarding business logic. There is a reason why the lock() and unlock() methods are exposed to the users of the Data class.
Regards, Andrew