added exercise three
several failed attempts on ex.3. Still non-functioning