added the Exit functionality and generated the .jar file