sample usage with autowiring