Implemented the first task.