Done part_f. Started on part_g