Yes, we know there aren’t enough women in tech. Yes, we know we need to change the ratio.

One college has found the answer.

With a three-step method, Harvey Mudd College in California quadrupled its female computer science majors. The experiment started in 2006 when Maria Klawe, a computer scientist and mathematician herself, was appointed college president. That year only 10% of Harvey Mudd’s CS majors were women. The department’s professors devised a plan.

They no longer wanted to weed out the weakest students during the first week of the semester. The new goal was to lure in female students and make sure they actually enjoyed their computer science initiation in the hopes of converting them to majors. This is what they did, in three steps.

1. Semantics count

They renamed the course previously called “Introduction to programming in Java” to “Creative approaches to problem solving in science and engineering using Python.” Using words like “creative” and “problem solving” just sounded more approachable. Plus, as Klawe describes it, the coding language Python is more forgiving and practical.

As part of this first step, the professors divided the class into groups—Gold for those with no coding experience and Black, for those with some coding experience. Then they implemented Operation Eliminate the Macho Effect: guys who showed-off in class were taken aside in class and told, “You’re so passionate about the material and you’re so well prepared. I’d love to continue our conversations but let’s just do it one on one.”

Literally overnight, Harvey Mudd’s introductory CS course went from being the most despised required course to the absolute favorite, says Klawe.

But that was just the beginning.

2. Visualize success

After successfully completing the introductory class, how to ensure female students voluntarily signed up for another CS class? The female professors packed up the students and took them to the annual Grace Hopper Conference, which bills itself as a celebration of women in technology. Klawe says the conference is a place for students to visualize women in technology; humans who happened to be female who love computers. Not everyone looks like the dudes in the trailer for HBO’s Silicon Valley.

3. Make it matter

Finally, the college offered a summer of research between freshman and sophomore years so female students could apply their new skills and make something. “We had students working on things like educational games and a version of Dance Dance Revolution for the elderly. They could use computer technology to actually work on something that mattered,” says Klawe.

The three-step strategy resulted in a domino effect. Female students loved the CS introductory course. They loved going to the conference. So they took “just one more course” and they loved that.

Before they knew it, women were saying, “‘I could be a computer science major, I guess.’ And so they are!” says Klawe.

By the time the first four-year experiment was over the college had gone from 10% female computer science majors to 40% female. UC Berkeley, Duke, Northwestern have had some success with similar tactics.

Is it too late for me?

I have a 3-year-old daughter so I felt relieved to hear there is a way to get women into computer science. Sadly, this strategy did not exist when I was a young woman. So in a middle-aged attempt to dip my toes into coding, I took a one-day crash course.

Watch the video below to see me confront my computer science fears, have an existential crisis, and attempt to build an app. All in one day.