Refactored every example computation into its own test method