How does my object work within a program?