first automatic finished

first simple automatic prototype, which needs furture update