ruby for nct programming contest.