The following (pseudocode) works for modelling linear acceleration (applying calculateNextStep and doNextStep for each time tick):
class myObject{ vector