Create parser and seperate server into it's own class