Finished the unbalanced brackets inside funcs()