Creating a delegate that takes input parameters