Framework for the design of electronic textbooks