updated wiki class to improve encapsulation