added prompt and started function