growth curve code