Hw4 first part