hw5: solutions