Copied spin code and updated author