Adding case 4 for quit option andefault case for invalid integer input