changed visitor pattern to temporary solution.

Signed-off-by: Denis Dik <denis.dik@hs-furtwangen.de>