dumb primitive software programming exercise