Added exercises from 31 to 40