Added compilation and example using console