Add main class and example script