Are these sentences correct? And is it the same meaning?<br/><br/>1. The only task of the Royal Family is to attract millions of tourists every year.<br/><br/>2. The only task of the Royal Family is attracting millions of tourists every year.