Class works fine, having trouble with ')' bug in main