Added base code of the Paulo Pinto and Pablo Tavares.