wrote start of coordgenerator class