added hw5.task3.hs