Final version of Problem2.php

Finally finished. With the help of Gisele.