Singletone swift B implemenation