made the constructor of data.php protected