working on calculator function;