move function definitions out of class declaration.