Sample code for part 1 of blog article