Refactor Rechenmodul
Remove Main and export part of the logic to View