Wrote cooridnate class