Errors fixed in multiple lines

added } to fix the code error