Add class example code from class 7