Calculator with basic functions