make class in script and create separate xml file