Button class with an __init__ method that takes a callback parameter and stores it.press method to the Button class that calls the stored callback function.say_hello that prints 'Hello! Button pressed.'.Button instance called button with say_hello as the callback.press method on the button instance to run the callback.