class examples implementing our own __len__ methods