implement back console.

using stub object to test code.