Blocks, code samples and rails exercises