Code Samples: Sample 1, Sample 2