group and previous_group aren't class attributes

they're instance attributes, so they should be initialized that way.