Used terminal's print instead of console log.
Updated the example.