Example of using delegates.