extends topk with code snippets