updated cog class and added model, where data objects will be stored, accessed, and modified