finish problem1c