Added input(), locate() and a demo for them