Wrote the provided code