perhaps I'm going about this differently than taught in class, though good learning experience