added load method, added tests