Solved problem 5.1 about parity