Add code for initializing and setting empty weight and name