We need to use enums to store the state of the service instead of strings like "stopped", "running" etc.. Enums provide better way to handle states and are the recommended way for a type that has a fixed set of values.