The business logic layer

The business logic layer encodes the application's business rules, such as validations and automatic computations. We will add the logic for our button now. This is done with Python code, using the methods in the Python class that represent the model.