changed sersic module to a class