variables storage changed to int. methods have return type