GA-code implemented