Adding the basic code