Example of a class that allows for inversion of control