this will be the code for the spiral