example code for tuts plus tutorial