Added structure for adding and multiplying functions