create base class in lab2
add page replace algorithm