Split the sample code up into two files