Implementation of data type stack