added c practice code