Adding class example code from day 2