added main class and samples