Added extend and this, still no scope handling