Refactored queue into its own module, updated the assignment file to use module.