Implementing homework

Implementing homework