Code that i have written for intro to cs class