It's obviously a freewheel hub and they are prone to broken axles, just where yours did, immediately inside the drive side cone. I trust the new bike will have a freehub and that should prevent further problems like this. Enjoy your graduation and the new bike.