added file reader class to the rectangle project