add qnikst`s solution