Writing code for multi-platform

a good start :