Add the source code for the solutions of problem set 3