initial setup of trainer class