added the transform() method and parsing methods