Added psuedo_code