ex. coursera nº 2

answer to ex.2