Using ruby block