Trying to do algorithm
Did some beautiful cofing