reusable library

create for loop for movie array