Wrap starfield in a class