Initial bash - needs tests and comments