leap year program - partially tested