Code for first 3 pages