Added private and static statements within functions and made class a Java Beans