Implemented question 8.