Custom calculations in a Matrix like way