Reworked ex1.