added exercise6