migrate tutorials 7-10 to examples