Added weight to tuple for returning
Added short term memory
Fixed inheritance issue