A theoretical approach towards digital twins