Carrie pseudo code