Updates Stack class