fix homework 6