I'm trying to guide you to doing it. That last example of code you provided wasn't syntatically correct because of your parenthesis. Code (like writing) requires that you close every open parenthesis (so if you nest parenthesis (like this) you need to make sure you close them all, like this->). That previous sentence had 3 left parenthesis and 3 right parenthesis, so it was well-formed. Code works the same way, you need a right parenthesis for every left parenthesis and vice versa.
Go back to the code you posted and make sure you have equal number of left and right parenthesis. And don't just add a bunch at the beginning or end to even the count out--place them in the correct spot. You are essentially building a math equation:
(7 + 3)*2 does not equal 7 + (3*2)
Placement is important.