singleton patterns in several languages