add sample code to use gorm