add calculator function called calc