Main class creation & Reference class