Cyber-Physical Systems for Social Applications