Indices trick and simple thunk class.