Move params within class definition

Was this legit before with the params outside the class definition?
Merge pull request #41 from G5/params-location

Move params within class definition