updated example now without pretty print