better tutorial code style