added orion pv diagram code