finish problem4b