added variables and get and set methods for variables