Update class.php

Changed source