added page3 and refactored code
added several more pages