Changes in problem 3 and 4 for prettiness and changes from "/" to "|" in definition of sets for problem1