implementando classes model