flex basics