Added section 5 comparison code