added main class and example