implementation of page4