2a: Implemented load function.