Main part of ex17
added shebang to ex17