small initial code
prompt function