added quit keyword to terminatethe program