Finished logic for Model class. Need to still add comments.