hw4 attempt