deleted access modifier private where necessary and made further
modifications for making changes work.