updated and made simple console application.