10/13
Part 3 of 4 · A class, one method at a timeLearn and do

Level 2 adds to the class you wrote

Coding builds come in levels. Each level adds to the class you already wrote, and every check from the levels before it keeps running. So read the new level first, list what it adds, and write only that. Change nothing that already works.

Here level 2 adds two methods: count, how many different titles the shelf holds, and take, which takes a title off and says whether it was there. Neither one changes add or has.

In the editor, Shelf holds level 1, and you add count and take.