update tutorial-6 with custom type