added NumberInputCommand. Refactoring.