Task2 lab3 and test for it