I'm in the same class as the OP, though I don't know him/her. I must say this is the only forum I've visited where people can come in and paste the skeleton code the lecturer gave us, and just ask...