Samples of various code algorithms