write the basic implements of platform.