Refactored menu class.