MacCormack's method for advection-reaction equations