All tasks for homework 2