both demos compiling