broke code out into objects to begin stream lining process