trying to modularize and create a data model