hw4 interactive version