better code example