Indentation is wrong here.  `public:` should be in line with the `{`.