finished writing a few functions. Backing up onto github