added simple example of delegate handling protocols