finished functionalities for restaurant.java