An exact solution for a rotating selfgravitating gas mass with oscillatory density