Syntax typos and fix to compile