Add train class and initialize