practice arrays and functions for PHP class