Replicate lst_new but use the alloc_data function rather than malloc. You can create the other linked list functions as well should you feel like it