first version, simple sawtooth