Implemented coordinate system in model layer