Adjusted cycle function to accomodate JSON data correctly. Added cycle properties that are required for calculations for each year.