magnetic design tutorial