Using Experiments and Cognitive Science Research to Improve the Design of Online Resources for Learning