Lab2: Task 3 & 4 (without running tests)