added class for sleep cycle detection