changed menu class from constructor pattern to literal object