debugged not working code (caused by misunderstanding of the functionality of Class Method)
refactored names of attributes