Sorry Jared
I went back and put the code in a spoiler tag if krudeboy wants to go through the thinking exercise.
EDIT: He just posted which means he probably saw it before the spoiler tag was in. Oh well. It can still be a thinking exercise for those new to programming