formulated 2nd task
copied code for another task
Task 2 implemented (and adjusted the task to fit solution)