Updates for section 9.8 and moved child class trajPartitioned to its own .R file