Finalized RestClass.php