First Version of the Code
Second Version of the Code