Added bash implementation

(written by alfateam123)