Rewriting the load_data function + std functions for B-L