Implement showCode functionality