Minor problem with solution when defined as members of class