Write psudo code