versao inicial funcional basico
merge with online version