simple flip program with code this time