convert into console application