added attribute accessor to restaurant class