added button in and out. Create main code file.