This is sample code for learning purpose....