Working Code for 4 activity pages

I took the code from 3 of us and made this. It compiles fine on my
computer. Check it on your pc.