creating a simple protocol delegate