You are welcomed to check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=687.0]Faraday's law of induction (magnet moving in/out of solenoid)[/url]  :D