Solving the mystery of sleep