Added a sample of pseudo-code