Added logical or and and operations as well as prompt exit function