added private and final keywords

improved data abstraction in all classes