switched from console to wpf and extracted folder methods to separate class