updating examples to show code