benchmark and stack code added - Revision 1