This is closer to real code than pseudo-code