Now, program passes the test001.