edited coding. added prompt.