Add missing semicolon
Extract "kind" function