completed the challenge and questions attached to see if my functions were well written