fixed class definition to match example call on line 148, as in master