hw4 program