set nested class private and 
set the variables to private