Made initial implementation

Please review
Trailing whitespace detected.