Writing demo code for tutorial on traits