Update- Better Code design

Never use using namespace std;
Use m_ for member variables, l_ vor locale variable and p_ for parameters to clarify their use.
Use -= and += instead of foo = foo + bar;