One step towards helper functions. Still not working. What did you think?