fixed compilation of example