Created user interaction program using prompt, confirm and alert