Added common.h with common code that might be useful for different projects