Made initial implementation

Please review
Inconsistent indentation detected.