Solved questions from the book to oop5