gives out correct output for thesimplest test case