Added part of the Controller Class. Offset Calculation and other things are pending.