can't figure out this program, committing anyway for later review