Homework 3 with errors