full solution of exercise of rate measure