Chapter: Type switch

Fixed #11