Implements Add function to calculator