exercise3 and updated index.html