Initial state

Original codes provided by Dr. Denis for the assignment.