working. added page calculator