Update class.php

Added lastmodified function