add to example checking the request type

closes #9