Partial implementation of the builder (will be used by the parser)