Domain-Independent Planning: Representation and Plan Generation