Task 2.3 coded