Fixed example code
Fixed function dump()