Added cases to lab3/prob2 if x == 0 or x and y == 0