add project example and fix compilation bug