Initial import of week 4 tutorial code