Brilliant solution! The main thing is simple!