hw04 finished with arduino code