Made initial implementation

Please review
Final newline missing.