changes on Card.php , missing method, alternative for get_file_contents