just need to override assignment operator in stack class. Maybe add functionality to extend array