Add functions to calculator