bugfixed, tested, and completed ex 2.27