Coding on Formation class