compiling demo