stack code implemented