Made task 3 (without jUnit tests).