Added loop method to loop a partial with given array