Finished problem 27 & 40