First homework, yay!

Great, but you can drop the intermediate assignment.  also no need for c()