Basic modification to the  code