Solution committed for edit