Added non-Python solution