Assignment1A code
Assignment1C code