Working version of Console application