new class and refrence in main