added new example of dimensionsFunc