A neat solution!