Sample code for Part 3