Added getYear() method