-Created parse function