This is the code on my ACM way.