added ex18 and replaced ex16 with ex16_compare