updating example to use body parser