implemented basic function of obj loading