updated with new gorm examples