Aplicando o pattern Strategy