Developed class Gallery.php.