added procedure for checking right answer