Tried to implement parsing further but having some issues