A Study of Complex Systems: from Magnetic to Biological