Edited code so that the result will be printed.