codigo principal e base