first working version,now only prints your code