Implemented user interface and better code to execute de operation.