moving it all into one function for now as per the tutorial