added code to COrder class