add hog sample code