Develop Algorihtm