Sergio Conde: Exercises from assignment 2.

I can squash them in one single commit if needed.