Implemented Problem 28