Changed c to data and added comments