added exercise3 file