public static void Main(string[] args) { var compoundInterest = new InterestCalculator(500, 5.6, 10, GetCompoundInterest); var simpleInterest = new InterestCalculator(2500, 7.2, 15, GetSimpleInterest); Console.WriteLine("{0:F4}", compoundInterest.Result); Console.WriteLine("{0:F4}", simpleInterest.Result); }