Closed unresolved function adding curly brackets in lines 42, 69, 70