1 and 2 tasks done, added calculations for task 3 variations