adding simple input
implement exit function