how to make a magnetic system