initialize Nov17
working on functions, loop and apply done