A good sample

This sample has many useful functions