Fixing Homework

A simple problem on task 3