Pull request for ex5. 

This time I did not forget to add a makefile.