class Screensaver (refactoring)