removed use of namespace std because I find that convention confusing