Basic version (addition and writing on stdout)