Please dont use my code as your own in your class. you can read it to figure out what i am doing.