added code for reversing list/print in reverse