When I piece of code I found online works on the first try