refactoring exam::take extension of menu