formalise order class