first try of math and line reader