Crux Part II Code