Implementing loadObj()