Restructuring to fit tutorial format.