this is my assignment 2.