Thanks to a friend of mine, it is again safer

added private vars in the classes instead of public, which is bad