adding the basic code