making sample code nicer