Effects of rest on learning processes