updated parse_lines method in parser class to just map instead of each with object([])