Wrote Nebula main class.