better code sample