Splitting server into 3 files