Added types, made init func in main