Code for the version 1.0