added my getwords function from last lab, commented out though