Implementation of sentence controller