solution for sample test 3 fall 2007 version 2 568726