control of linear actuators using strategy design pattern