Before major changes
method write to stdout rather than return the value
wip