added exercise3