Working prototype of my program