Gave getter methods

Changed values from public to private and gave getter methods for them
and applied all changes that went directly to those pubic classes