First version

Coded the sample provided