Working on the last function

Having issues getting all of them to work at the same time.