Changed the structure. Code is not runnable now.