The connection between good sleep and memory function