add class from main method