Added grade homeworks to the main menu handling.