Stop in for a cup of coffee

Was up around 7:30 after about 6 hours sleep. Just woke up again like half hour ago. Why is it you feel more groggy the 2nd time you wake up after more sleep? Need more coffee...