Added getFirstValue method