Moved the Stack class to the classes.js file.