privatize method for objects and example use and readme