Build up main class (class QQ partly finished)