created a new example with Klemen's code