Fixed compile error, updated sample04