made the main menu object oriented