Ex1

Implementation of ex1 completed.