used concatentation in display string (brackets around ternary expressions)
factory design pattern (misapplied)