implement dropout sample code