refactored programm for observer-pattern and google guice