sample code of HOWTO