add example code from earlier teachings of this class