update rack sample and move terminal launch command to bin file
total refactoring, remove old beginner codes