source code used in blog