Created the result and wrote it

Created the result variable and wrote it