Reverse program in scala was added