adds in Ch4-5: orig, ref and traits