Main class merge