modified tutorial examples