Added the beginnigns of sg model