The basic code