2 different solutions failed. (Second is commented in code)