Using hooks

Hooks are a powerful way to extend the functionality of architectures in metatrain.