A Method of Lines Framework in Mathematical