Code layout is wrong here.
Don't nest the class