Added spec for loops
Adding separator functionality