Text this: A discrete-time learning control algorithm for a class of linear time-invariant systems