put class function definitions in one file