Finished assignment4.