Playing with Xcode for problems 38 and 40.