Started code for FlakeModel class