Great hack to avoid writing same code again and again..Thanks