Added type code examples and hooks