Wrote exercise1