some sample methods blocks and sorting