Add logic and array samples.