made Greenbot a class instead of module