added basic quit function

basic quit function added to first input