First task solved for possitive numbers