Works with 3 elements