clean code, display sample details on screen