corrected typos and added exercise