filling in matrices A and C
matrices A and C