Rough merge of three classes in same file