got initWithBlock to take in a block and store it