working toy 3-stage example with unshared parameters