Added code for trex.md