Changed control of textfield. Optimized code organization. And rounded vale for the answer and added a $ sign.