parse line function implemented
parse line function implemented