removed atribute counter and id
equals method refactored