stl class modifications with public access to variables and functions