Created a Main class and initialize for API class.