adding Unit #3 code snippets