Now, program passes the test005.