<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getServiceLevel(self):
 """Returns the service level"""

    command = '$GE'
    settings = self.sendCommand(command)
    flags = int(settings[2], 16)
    return (flags & 0x0001) + 1