needs fine tuning

class modules break up of this script. how to ?. please suggest.