Shorten sample code