Refactored class TanulmanyiOsztaly and added some test cases.