Initial check-in. From A1_code.zip