Basic arithmetic without eval()