add Apache license to code