Adding forEach method.