Add attribute functionality to Menu class too.