try to implements a simple program that solve problem