dumb programming exercise