exercises by ted
added first example code