adding from class