move function definitions out of class declarations.