Added 2 public motheds and some sample codes.