second part of hw4