beginning stages of algorithm
beginning stages of algorithm