skeleton training code, lots of TODOs