Convert Currency: rewrote code and improve error handling