Incorrect solution for homework!