removed unneeded comments, implemented size() function