def concatenate(lists):
    """
    This concatenates all the lists contained in a list.
    :param lists: a list of lists.
    :return:
        new_list: concatenated list.
    """
    new_list = []
    for i in lists:
        new_list.extend(i)
    return new_list