This is the sample code for <Head first design pattern>