impelemented basic system for input