Molecular dynamics study of polymer melt confined between walls