public function add($instruction)
    {
        if ($instruction instanceof Closure) {
            $instruction = new CustomInstruction($instruction);
        }
        $this->instructions[] = $instruction;
        return $this;
    }