Add singleton for Gender class.

Logic of realisation calss Gender change by adding singleton object.