add bin to sample code