Ok I solved like in your second solution. Thanks for help