added menu class with tests