added main, compiles