Structured and added galileo code