Previously coded.

This is my initial code.