Correct errors of homework 1