Second example from fourth chapter. Should check whether class attribute can be replaced with instance attribute for consistency, though.