Implemented basis for task 7