Added private constructor and make some methods private so that other classes should not ablt to access those methods.