Extending Modules with Conditionals and Outputs