Added sample code for Part 5