added power operator and negative number inputs