fixed the show function
moved example code to TempMain2