implemented check of given answer