Program1 for class