created main class and method