added v1 of class-assignment2