fixed second add method
added hw 12