Simple Example Of An Algorithm