added open and creat example