updated Class.extend