improved code layout for tutorials