Library for stack struct