hw6 attempt 1