working logic to Task 4