The business logic layer

Now we will add the logic for our button. This is done with Python code, using the methods in the model's Python class.