Tutorial ports - fixes 310

Fixes #310.