method class modified to add returntype attribute as well as appropriate methods. Also parentcalss atribute deleted.