init milestone3 code