Re-did Stack class; also added Structure trait and test