Modified apply in blocks to just return an array
discerning function, which solves q11.