Exercises done. :)

It looked like the simplest solution to what I was trying to do.