template algorithm creation script --kazu