Broke up the file into front / back end, eventually also ios