Initial state

Original codes provides by Dr. Denis for the assignment.