Creating and using an interface