Implemented Problem 19