created a hardware class that will encapsulate all added hardware. Updated code accordingly