modification a few program
using array