added training methods and a cox2 example