updated class2 exercises