Introduce rule for type.
Add stuff for method bodies.
Remove unused imports.