Innerclass not working