Replaced .begin() .end() by begin() and end()