Move method run() to the superclass.
Remove main method.
Move code around.