Accidentally pushed a solution that did not compile due to a missing const-variable. Sorry.