first prototype of hw4