added actually working solution to problem 5, and edited solution to problem 1