Changing everything

adding a model struct, and pointer usage