Made Service as class. Corrected Main.