write code to manage missile 3