Example of using delegate for passing data from second to first view.