Code inputted, but not working right.