Solutions for problems 31, 32 and 33