2nd homework attempt