adding frame class
@total added to frame class using reduce to total set