merging the sw and hw into one file with separate classes