Functions, loops, objects oh my!