Implemented code from HW#5 Task 1.