Encapsulate class methods in self