Code cleanup: input from user stored in 'answer' variable converted to int