working with external class