Learning how to use pre and post dream states