Finished assignment
Made the stack mac compatible