Refactored show method