Code sample cleanup

* Fix indentation
* Fix typo and change "enters the" to "requests"