Task 4 implementing