finish problem1a