fixed examples (Call to a member function format() on a non-object in line 469)