added vertices() method